
import javax.swing.JPanel;
import calendar_ex.*;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author peter
 */
abstract public class ObservingJPanel extends JPanel {
    CalendarEx calendarModel;
    CalendarController calendarController;

    public ObservingJPanel() {
        this.calendarModel = null;
    }

    public ObservingJPanel(CalendarEx model, CalendarController controller) {
        this.calendarModel = model;
        this.calendarController = controller;
    }

    /**
     * Inform about that state has been updated
     */
    abstract public void update();
}
